<footer class="copyright shadow-sm mt-3">
	<div class="container text-center">
		<p>{dede:global.cfg_powerby/} <a href="https://www.dedebiz.com" target="_blank">Powered by DedeBIZ开发团队</a></p>
		<span>友情连接：{dede:flink row='10'/}</span>
	</div>
</footer>
<div class="scroll-top">
	<button onclick="gotop()" id="returntop" title="返回顶部"><i class="fa fa-chevron-up"></i> </button>
</div>
<script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script>
<script src="{dede:global.cfg_cmsurl/}/static/web/js/style.js"></script>
{dede:statistics/}
<script>
	//校验是否登录
	function CheckLogin() {
		$.get("{dede:global.cfg_cmsurl/}/user/api.php?format=json",function(result) {
			if (result.code === 200) {
				$("#_login").html(`<a href="{dede:global.cfg_cmsurl/}/user" class="mr-3"><img src="${result.data.facepic}" alt="${result.data.username}" title="${result.data.username}" class="user-img-xs mr-1">${result.data.username}</a><a href="/user/pm.php" class="btn btn-primary btn-sm rounded-circle"><i class="fa fa-bell"></i></a><a href="{dede:global.cfg_cmsurl/}/user/index_do.php?fmdo=login&dopost=exit" class="btn btn-success btn-sm rounded-circle"><i class="fa fa-sign-out"></i></a>`);
				$("#iptUsername").val(result.data.username);
				$("#iptUsername").attr("disabled", "disabled");
				$(".areaValidate").hide();
			} else {
				$(".areaValidate").show();
			}
		});
	}
	//页面加载触发
	$(document).ready(function () {
		CheckLogin();
	});
</script>